package cn.wolfcode.luowowo.hotel.service;

import cn.wolfcode.luowowo.hotel.domain.HotelOrder;
import cn.wolfcode.luowowo.hotel.query.HotelOrderQueryObject;
import cn.wolfcode.luowowo.hotel.vo.HotelOrderVo;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 酒店服务
 */
public interface IHotelOrderService {
    void deleteById(Long id);

    void saveOrUpdate(HotelOrder record);

    HotelOrder findById(Long id);

    List<HotelOrder> selectAll();

    PageInfo<HotelOrder> query(HotelOrderQueryObject qo);

    boolean orderHotel(HotelOrderVo qo, UserInfo userInfo);

    List<HotelOrder> queryUserHotelOrderByUserId(Long userId);
}
